#ifndef PERSON_H
#define PERSON_H

#include <string>
#include <stdexcept>
#include <iostream>

class Person {
protected:
    std::string name;
    int age;
    std::string id;

public:
    Person(const std::string& name, int age, const std::string& id);
    virtual ~Person() {}

    virtual void display() const;
    std::string getId() const;
    virtual double calculateFee() const = 0;
    bool operator==(const Person& other) const;
};

#endif

